package com.xinhe.web.reposity;

import com.xinhe.web.entity.SeckillGoods;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface SeckillGoodsRepository  extends JpaRepository<SeckillGoods, Long> {
    @Query(value = "select * from tb_seckill_goods where removed = 0 and f_goods_id = ?1 and f_seckill_time_id = ?2", nativeQuery = true)
    SeckillGoods findByGoodsIdAndSeckillTimeId(Long goodsId, Long seckillTimeId);
}
